<!-- 处理发布时间-->
<script>
    document.addEventListener('DOMContentLoaded', function () {
        // 解析日期字符串
        const dateStr = '{{lastBuildDate}}';
        const date = new Date(dateStr);

        // 使用年月日格式，并确保月份和日期为两位数
        const year = date.getFullYear();
        const month = (date.getMonth() + 1).toString().padStart(2, '0');
        const day = date.getDate().toString().padStart(2, '0');
        const simpleFormat = year + ' 年 ' + month + ' 月 ' + day + ' 日';
        document.getElementById('lastBuildDate').innerHTML = simpleFormat;
        //console.log(simpleFormat); // 输出: 2025 年 11 月 08 日
    });
</script>

<footer class="style-container">
    <div class="flex justify-center flex-wrap mb-16 style-des size-des">
        <!--底部介绍-->

        <span>Copyright © 2025 </span>
        <span aria-hidden="true">&nbsp;·&nbsp;</span>
        <a target="_blank" href="https://zh.mweb.im/">页面生成来自&nbsp;MWeb</a>
        <span aria-hidden="true">&nbsp;·&nbsp;</span>主题来自
        <a target="_blank" href="https://gitee.com/gitgreat/mweb-site-theme">&nbsp;Gitee
        </a>
        <span aria-hidden="true">&nbsp;&nbsp;</span>
        <span>
            <span>更新于&nbsp;</span>
            <span id="lastBuildDate">{{lastBuildDate}}</span>
        </span>

        <!-- 样式切换按钮-->

        <div class="mt-4 flex flex-wrap style-space">
            <div class="inline-flex items-center">
                <button id="font-classic" onclick="changeFont('classic')"
                    class="style-des style-hover style-border style-toggle-btn rounded-l-xl">传统</button>
                <button id="font-sans" onclick="changeFont('sans')"
                    class="style-des style-hover style-border style-toggle-btn -ml-px">黑体</button>
                <button id="font-serif" onclick="changeFont('serif')"
                    class="style-des style-hover style-border style-toggle-btn rounded-r-xl">宋体</button>
            </div>
            <div class="inline-flex items-center">
                <button id="theme-auto" title="自动" onclick="changeTheme('auto')"
                    class="style-des style-hover style-border style-toggle-btn rounded-l-xl">
                    🌗</button>
                <button id="theme-light" title="太阳" onclick="changeTheme('light')"
                    class="style-des style-hover style-border style-toggle-btn -ml-px">
                    🌞</button>
                <button id="theme-dark" title="夜晚" onclick="changeTheme('dark')"
                    class="style-des style-hover style-border style-toggle-btn rounded-r-xl">
                    🌙</button>
            </div>
        </div>


        <!--返回顶部按钮-->
        <span onclick="scrollToTop()"
            class="back-to-top shadow rounded-full p-1.5 fixed transition cursor-pointer bottom-6 right-6 style-des style-mark-bg visible">
            <svg class="style-icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5629"
                width="200" height="200">
                <path
                    d="M147.936 754.048c-14.88 0-28.272-11.904-39.68-23.312-11.904-11.904-37.2-37.2-11.904-63.488l377.952-377.952c8.928-8.928 22.816-19.84 37.696-19.84s28.768 10.912 37.696 19.84l377.952 377.952c10.416 10.416 13.392 21.824 8.928 34.224-3.472 9.424-11.408 18.352-21.824 28.768-14.384 14.384-28.768 21.824-41.168 21.824-7.936 0-15.872-2.976-21.824-9.424L512 402.88l-340.256 340.256c-7.44 6.944-15.376 10.912-23.808 10.912z"
                    fill="currentColor" p-id="5630"></path>
            </svg>
        </span>
    </div>

</footer>

</div>
</div>
<!--移动端菜单-->
<div id="mobile-menu" class="menu-active-style pt-26 style-bg">
    <div class="block sm:hidden mx-4">
        <label for="Search">
            <div class="relative">
                <input id="Search" class="p-2 rounded w-full  pe-10 shadow-sm size-des dark:border style-border"
                    type="text"><span class="absolute inset-y-0 right-2 grid w-8 place-content-center">
                    <button type="button" aria-label="Submit" class="rounded-full p-1.5  transition-colors style-des">
                        <svg class="style-icon-mini" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
                            stroke-width="1.5" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round"
                                d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z">
                            </path>
                        </svg>
                    </button>
                </span>
            </div>
        </label>
        <nav class="mt-2" aria-label="Global">
            <ul id="mobile-menu" class="flex items-center size-title-max flex-wrap">
                {% for m in siteMenu %}
                <li class="w-full">
                    <a class="transition block relative font-bold py-4" target="{{ m.target }}" href="{{ m.url }}">{{
                        m.name
                        }}</a>
                </li>
                {% /for %}
            </ul>
        </nav>
    </div>
</div>
<!-- React 框架样式-->
<link rel="stylesheet" href="asset/css/index.css">
<script type="text/javascript" src="asset/js/main.js"></script>
<script type="text/javascript" src="asset/js/style.js"></script>
</body>

</html>